/**
 * Created Date: Saturday, April 8th 2023, 2:07:14 pm
 * Author: CodingGorit
 * -----
 * Last Modified: Sat Apr 22 2023
 * Modified By: CodingGorit
 * -----
 * Copyright © 2019 —— 2023 fmin-courses All Rights Reserved
 * ------------------------------------
 * Javascript will save your soul!
 */

import Welcome from '@/views/Welcome.vue';
import NotFound from '@/views/error/404.vue';
import { RouteRecordRaw } from 'vue-router';

const childrens: RouteRecordRaw[] = [{
    path: '/welcome',
    component: Welcome,
},
// {
//     // 用户相关页面
//     path: '/user/list',
//     component: () => import('@/views/user/User.vue')
// }, {
//     // 管理员列表
//     path: '/admin/list',
//     component: () => import('@/views/user/Admin.vue')
// }, 
{
    // 内容 - 帖子
    path: '/content/blog',
    name: 'Blog',
    component: () => import('@/views/content/Blog.vue')
},
{
    // 内容 - 帖子具体内容
    path: '/content/blog/detail',
    component: () => import('@/views/content/blogDetail/BlogPreview.vue')
},
{
    // 内容 - 管理员添加帖子
    path: '/content/blog/edit',
    component: () => import('@/views/content/blogDetail/BlogEdit.vue')
},
{
    // 小程序内容
    path: '/mini/mine/log',
    name: "miniLog",
    component: () => import("@/views/mini/mine/updateLog/index.vue")
},
//     , {
//     // 内容 - 关于
//     path: '/content/about',
//     name: 'About',
//     component: () => import('@/views/content/About.vue')
// },
// {
//     // 内容 - 关于 edit
//     path: '/content/about/edit',
//     name: 'editAbout',
//     component: () => import('@/views/content/aboutdetail/AboutEdit.vue')
// },
// {
//     // 内容 - 关于 detail
//     path: '/content/about/detail',
//     name: 'aboutDetail',
//     component: () => import('@/views/content/aboutdetail/AboutDetail.vue')
// },
// {
//     // 系统 - 留言板
//     path: '/system/msgboard',
//     name: 'MsgBoard',
//     component: () => import('@/views/system/MsgBoard.vue')
// },
// {
//     // 系统 - 留言板编辑
//     path: '/system/msgboard/edit',
//     component: () => import('@/views/system/msgboarddetail/MsgBoardEdit.vue')
// },
// {
//     // 系统 - 时间轴
//     path: '/system/timeline',
//     name: 'TimeLine',
//     component: () => import('@/views/system/TimeLine.vue')
// },
// {
//     path: '/system/timeline/edit',
//     name: 'TimeLineEdit',
//     component: () => import('@/views/system/timelinedetail/TimeLineEdit.vue')
// }, {
//     // 时间轴预览页
//     path: '/system/timeline/preview',
//     name: 'TimeLineDetail',
//     component: () => import('@/views/system/timelinedetail/TimeLinePreview.vue')
// }, {
//     // 系统 - 友情链接
//     path: '/system/link',
//     name: 'Link',
//     component: () => import('@/views/system/Link.vue')
// }, {
//     // 系统 - 友情链接编辑
//     path: '/system/link/edit',
//     name: 'LinkEdit',
//     component: () => import('@/views/system/linkdetail/LinkEdit.vue')
// }, {
//     // 系统 - 日志
//     path: '/system/log',
//     component: () => import('@/views/system/Log.vue')
// }, {
//     // 资源 - 图片
//     path: '/resource/source',
//     name: 'Image',
//     component: () => import('@/views/resource/Source.vue')
// }, {
//     // 资源 - 搜索
//     path: '/resource/search',
//     component: () => import('@/views/resource/Search.vue')
// }, {
//     path: '/data/analyse',
//     component: () => import('@/views/data/Data.vue')
// },
{
    // vue3 通过正则表达式来匹配不存在的路由 vue2 使用 /** 即可实现同样的功能
    path: '/:pathMatch(.*)*',
    name: '404',
    component: NotFound,
    meta: { title: '页面丢失了' }
}];

export default childrens